<?php $stt = 1; foreach($data AS $key=>$value): ?>
    <tr>
    	<td class="centeralign"><?php echo $stt;$stt++;?></td>
        <td><?php echo $value->username?></td>
        <td><?php echo $value->codeTrade?></td>
        <td><?php echo $value->content?></td>
        <td>
            <?php 
                if($value->statusTrade == 1)
                {
                    echo 'Thành công';
                }elseif($value->statusTrade ==0){
                    echo 'Thất bại';
                }
            ?>
        </td>
        <td><?php echo $value->created?></td>
    </tr>
<?php endforeach;?>